package com.train.utils;

import java.awt.Color;
import java.util.Random;

import com.train.enums.Gender;

public class Generator {
	
	public static int i = 0;
	
	public static int generateId() {
		return ++i;
	}
	
	public static Gender generateGender() {
		int randomGender = 0;
		Gender[] gender = {Gender.MALE, Gender.FEMALE};
		randomGender = new Random().nextInt(2-0) + 0;
		return gender[randomGender];
	}
	
	public static int generatePassangersAmount() {
		return new Random().nextInt(1000 - 50) + 50;
	}
	
	public static int generatePassangerAge() {
		return new Random().nextInt(80 - 0) + 0;
	}
	
	public static Color generateLuggageColor() {
		int randomLuggageColor = 0;
		Color[] color = {Color.black, Color.red, Color.white};
		randomLuggageColor = new Random().nextInt(3-0) + 0;
		return color[randomLuggageColor];
	}	
	
}
